//
//  LPArrayNoDataTableViewCell.m
//  ShangHaiHuDongApp
//
//  Created by 刘应平 on 2017/6/29.
//  Copyright © 2017年 刘应平. All rights reserved.
//

#import "LPArrayNoDataTableViewCell.h"

@implementation LPArrayNoDataTableViewCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

/**  100  */
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        self.backgroundColor = [UIColor themeGrayColor];
        self.selectionStyle = UITableViewCellSelectionStyleNone;
        UILabel *label = [UILabel new];
        label.textAlignment = NSTextAlignmentCenter;
        label.textColor = [UIColor textGrayColor];
        label.text = @"暂无数据";
        label.font = LYPFONT(16);
        [self addSubview:label];
        label.sd_layout.centerYEqualToView(self)
        .centerXEqualToView(self)
        .heightIs(20)
        .widthIs(100);
    }
    return self;
}

@end
